import random

names = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H']

offices = [[], [], []]

for name in names:
    office_idx = random.randint(0, 2)
    offices[office_idx].append(name)


for i, office in enumerate(offices, 1):
    print(f"办公室{i}：{office}")